import {createRouter, createWebHashHistory} from 'vue-router';
import Index from "@/views/Index.vue";
import About from "@/views/About.vue";
import Case from "@/views/Case.vue";
import Contact from "@/views/Contact.vue";
import Insight from "@/views/Insight.vue";
import Service from "@/views/Service.vue";
import ServiceCase from "@/views/service/ServiceCase.vue";
import Article from "@/views/Article.vue";


const routes = [
    {path: '/', component: Index},
    {path: '/about', component: About},
    {path: '/case', component: Case},
    {path: '/contact', component: Contact},
    {path: '/insight', component: Insight},
    {path: '/service/:index', component: Service},
    {path: '/service-case/:type/:index', component: ServiceCase},
    {path: '/article', component: Article},
]

const router = createRouter({
    history: createWebHashHistory(),
    routes,
})

export default router;